.searchbox {
    justify-content: flex-start;
    display: flex;
    line-height: 1;
    align-items: center;
    font-size: 16px;
    letter-spacing: normal;
    max-width: 100%;
    height: 100%;
    text-align: left;
    border-radius: 4px;
    border: 1px solid #dddddd;
    position: relative;
    padding-left: 10px;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), background-color .2s cubic-bezier(.4, 0, .2, 1), left .2s cubic-bezier(.4, 0, .2, 1), right .2s cubic-bezier(.4, 0, .2, 1), box-shadow .28s cubic-bezier(.4, 0, .2, 1), max-width .25s cubic-bezier(.4, 0, .2, 1), width .25s cubic-bezier(.4, 0, .2, 1);
    .searchbox-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        fill: rgba(110, 110, 110, .6);
        font-size: 16px;
        .icon {
            max-width: inherit;
            height: 20px;
            color: inherit;
        }
    }
    .searchbox-content {
        margin-left: 10px;
        font-size: 16px;
        flex: 1;
        input {
            color: rgba(110, 110, 110, 1);
            border: none;
            font-size: inherit;
            width: 96%;
            &:hover,
            &:focus {
                outline: none;
            }
            &::placeholder {
                color: rgba(110, 110, 110, 1);
            }
        }
    }
    .suggestions {
        margin: 0;
        padding: 0;
        position: absolute;
        top: $navbar-height - $navbar-height * 0.2;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border: 1px solid $border-color;
        box-shadow: 1px 2px 8px rgba(0, 0, 0, .15);
        z-index: 8;
        max-height: 304px;
        overflow: auto;
        transform-origin: left top;
        padding: 4px 0;
        display: none;
        .suggestion {
            cursor: pointer;
            text-decoration: none;
            outline: none;
            position: relative;
            padding: 0 16px;
            min-height: 40px;
            line-height: 40px;
            justify-content: center;
            align-content: center;
            transition: background-color .3s cubic-bezier(.645, .045, .355, 1), padding .3s cubic-bezier(.645, .045, .355, 1);
            font-size: 16px;
            font-weight: 500;
            letter-spacing: 1px;
            overflow: hidden;
            text-overflow: ellipsis;
            // &.focused {
            //     background-color: rgba(62, 175, 124, .1);
            // }
            & a {
                text-decoration: none;
                outline: none;
                color: rgba(110, 110, 110, 1);
                border-style: none;
            }
            &:hover {
                background-color: rgba(62, 175, 124, .1);
                color: $color-primary;
            }
            &:active {
                background-color: rgba(229, 229, 229, 1);
                color: $color-primary;
                outline: none;
                border-style: none;
                outline: none;
            }
        }
    }
}

.focused {
    border: 1px solid $color-primary;
    .suggestions {
        display: block;
        .suggestion {
            &.focused {
                background-color: rgba(62, 175, 124, .1);
                border: none;
            }
        }
    }
    .searchbox-icon {
        fill: $color-primary;
    }
}